public class Test02 {
    public static void main(String[] args) {
        Myprint p = new Myprint();
        Thread th1 = new Thread(){
            @Override
            public void run() {
                for (int i = 0; i < 10; i++) {
                    p.print1();
                }
            }
        };
        Thread th3 = new Thread(){
            @Override
            public void run() {
                for (int i = 0; i < 10; i++) {
                    p.print1();
                }
            }
        };
        Thread th2 = new Thread(){
            @Override
            public void run() {
                for (int i = 0; i < 10; i++) {
                    p.print2();
                }
            }
        };
        Thread th4 = new Thread(){
            @Override
            public void run() {
                for (int i = 0; i < 10; i++) {
                    Myprint.print3();
                }
            }
        };
        th1.start();
        th4.start();
        // th2.start();
    }
}
